import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//1.导入vant:在main.js中导入组件，这样其他页面就不用导入
import './utils/vant.js'
//2.导入amfe-flexible : 动态设置rem为屏幕1/10
import 'amfe-flexible'
Vue.config.productionTip = false

//注册全局过滤器
import moment from 'moment'

Vue.filter('fromNow', value => {
  return moment(value).fromNow()
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
